import request from '@/utils/request'
import {pageCusMessage} from "@/api/system/customermessage";


/**
 * 分页查询轮播图
 * @param query
 * @returns {AxiosPromise}
 */
export function pageCarousel(data) {
  return request({
    url: '/api/carousel/page',
    method: 'post',
    data: data
  })
}


/**
 * 详情接口
 * @param query
 * @returns {AxiosPromise}
 */
export function detailCarousel(data) {
  return request({
    url: '/api/carousel/detail',
    method: 'post',
    data: data
  })
}


/**
 * 添加轮播
 * @param query
 * @returns {AxiosPromise}
 */
export function addCarousel(data) {
  return request({
    url: '/api/carousel/add',
    method: 'post',
    data: data
  })
}


/**
 * 删除轮播
 * @param query
 * @returns {AxiosPromise}
 */
export function delCarousel(data) {
  return request({
    url: '/api/carousel/delete',
    method: 'post',
    data: data
  })
}


/**
 * 更新轮播
 * @param query
 * @returns {AxiosPromise}
 */
export function updateCarousel(data) {
  return request({
    url: '/api/carousel/update',
    method: 'post',
    data: data
  })
}

